package com.wxsoft.util;

import javax.servlet.http.HttpServletRequest;

import com.wxsoft.business.sys.pojo.SysUser;
import com.wxsoft.util.common.Const;

public class UserUtil {

	/**
	 * 返回当前用户
	 * @param request
	 * @return
	 */
	public static SysUser getUser(HttpServletRequest request){

		SysUser user = (SysUser) request.getSession().getAttribute(Const.SESSION_USER); 
		return user;
	}
}
